<template>
    <div class="app-header-container">
      <img src="../assets/logo.png" width="40px" id="appLogo">
      <ol class="nav-container">
        <li>
          <router-link :to="{name: 'Home'}">首页</router-link>
        </li>
        <li>
          <router-link :to="{name: 'TopDownload'}">DDD</router-link>
        </li>
        <li>
          <router-link :to="{name: 'About'}">关于</router-link>
        </li>
      </ol>
    </div>
</template>

<script>
export default {
  name: 'AppHeader',
  data () {
    return {}
  },
  computed: {
    userName: function () {
      return ''
    }
  },
  created () {
  },
  mounted () {
  },
  methods: {
    doSomething () {
    }
  }
}
</script>

<style scoped>
  .app-header-container {
    height: 60px;
    line-height: 60px;
    border-bottom: 1px solid #E4E4E4;
    position: relative;
    background-color: #DCDCDC;
  }
  #appLogo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    margin: auto;
  }
  .nav-container {
    list-style: none;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 20px;
    margin: auto;
  }
  ol li {
    display: inline-block;
    color: black;
    margin-left: 20px;
  }

  li a {
    text-decoration: none;
    color: #009966;
  }
</style>
